#include "point.h"
#include <iostream>
using namespace std;

Point::Point()  //无参构造
{
    cout << "我是构造函数" << endl;
    m_x = m_y = 0;5
}

Point::Point(int x, int y)//有参构造
{
    cout << "我是有参构造函数" << endl;
    m_x=x;
    m_y=y;
}

Point::~Point()
{
    cout<<"我是析构函数"<< endl;
}

void Point::setX(int x)
{
}

void Point::setY(int y)
{
}

int Point::getX()
{
    return m_x;
}

int Point::getY()
{
    return m_y;
}
